package com.devplatform.pojo.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class CommentsDto {
    private Integer commentId;
    private Long articleId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    private String username;
    private String avatar;
    private String commentContent;
    private LocalDateTime commentTime;
    private Integer likeCount;

    private String likedUserIds;

    private boolean isLiked;
}
